/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package practikasdelsalonn;

import java.util.*;
public class ejersicio7 {


    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) {

        int a, b, c, d, max, min;
        System.out.println("inicio");
        System.out.println("a");
        a=sc.nextInt();
        System.out.println("b");
        b=sc.nextInt();
        System.out.println("c");
        c=sc.nextInt();
        System.out.println("d");
        d=sc.nextInt();
        max=Math.max(a, b);
        max=Math.max(max, c);
        max=Math.max(max, d);
        System.out.println("es el mayor"+max);

        min=Math.min(a, b);
        min=Math.min(min, c);
        min=Math.min(min, d);
        System.out.println("es el menor:"+min);
    }

}

